package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_FbaDeliver", catalog="Id")
public class TccFbaDeliver extends BaseEntity<TccFbaDeliver> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="FbaPlanBid", nameJava="fbaPlanBid", typeDataBase="varchar")
	private String fbaPlanBid;
	@YsField(nameDataBase="AuditingUser", nameJava="auditingUser", typeDataBase="varchar")
	private String auditingUser;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="BoxNum", nameJava="boxNum", typeDataBase="int")
	private Integer boxNum;
	@YsField(nameDataBase="TransparentNum", nameJava="transparentNum", typeDataBase="int")
	private Integer transparentNum;
	@YsField(nameDataBase="EurNum", nameJava="eurNum", typeDataBase="int")
	private Integer eurNum;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="RecalculateTime", nameJava="recalculateTime", typeDataBase="datetime")
	private Date recalculateTime;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccFbaDeliver setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccFbaDeliver setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getFbaPlanBid() {
		return fbaPlanBid;
	}
	public TccFbaDeliver setFbaPlanBid(String fbaPlanBid) {
		this.fbaPlanBid = fbaPlanBid;
		return this;
	}
	public String getAuditingUser() {
		return auditingUser;
	}
	public TccFbaDeliver setAuditingUser(String auditingUser) {
		this.auditingUser = auditingUser;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TccFbaDeliver setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public Integer getBoxNum() {
		return boxNum;
	}
	public TccFbaDeliver setBoxNum(Integer boxNum) {
		this.boxNum = boxNum;
		return this;
	}
	public Integer getTransparentNum() {
		return transparentNum;
	}
	public TccFbaDeliver setTransparentNum(Integer transparentNum) {
		this.transparentNum = transparentNum;
		return this;
	}
	public Integer getEurNum() {
		return eurNum;
	}
	public TccFbaDeliver setEurNum(Integer eurNum) {
		this.eurNum = eurNum;
		return this;
	}
	public Date getRecalculateTime() {
		return recalculateTime;
	}
	public TccFbaDeliver setRecalculateTime(Date recalculateTime) {
		this.recalculateTime = recalculateTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccFbaDeliver setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccFbaDeliver setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccFbaDeliver setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccFbaDeliver tccFbaDeliver(
		String bid,
		String fbaPlanBid,
		String auditingUser,
		Date auditingTime,
		Integer boxNum,
		Integer transparentNum,
		Integer eurNum,
		Date recalculateTime,
		Integer status
			) {
		TccFbaDeliver entity = new TccFbaDeliver();
		entity.setBid(bid);
		entity.setFbaPlanBid(fbaPlanBid);
		entity.setAuditingUser(auditingUser);
		entity.setAuditingTime(auditingTime);
		entity.setBoxNum(boxNum);
		entity.setTransparentNum(transparentNum);
		entity.setEurNum(eurNum);
		entity.setRecalculateTime(recalculateTime);
		entity.setStatus(status);
		return entity;
	}
}